package com.mirror.util;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Comparator;
import java.util.Date;
import java.util.List;

public class SortClass3 implements Comparator{  
    public int compare(Object arg0,Object arg1){  
    	SimpleDateFormat sdf = new SimpleDateFormat("dd");
        List a = (List) arg0;  
        List b = (List) arg1;  
        Date da=null;
        Date db=null;
        try {
			da=sdf.parse((String) a.get(3));
			db=sdf.parse((String) b.get(3));
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        int flag = da.compareTo(db);  
        return flag;  
    }  
} 
